#include <stdio.h>
#include <math.h>
int  main()
{
	int i;
	int n;
	for (i = 100;i<=200;i++)
	{
		if(i%3==0&&i%7==0)
		{
			if(n%8==0)
			printf("%6d",i);
			n++;
			
		}
	}
	printf("\nNumbers are:%d\n",n);
	return 0;
	
}
